// 引入 封装的api 
import api from './request';

// 封装请求函数 xxxxx
export const StationStatusApi = (data) => api({
    url: '/api/agv/StationStatus', // 请求地址
    method: 'POST', // 请求方式
    data:data
})

// 封装请求函数xxxxx
export const reveiseStationStatusApi = async (data) => {
    try {
        const response = await api({
            url: '/api/agv/ReviseStationStatus',
            method: 'post',
            data: data,
        });
        return response.data;
    } catch (error) {
        // 处理错误
        console.error('API Request Error:', error);
        throw error;
    }
};


